<?php
/**
 * 
 * Customer Seach Result Grid
 *
 * @author Xavier VILAIN
 */
use Fox\Generator;
$grid = new Fox\Grid('gResult');
$grid->fieldcat(array('name1','uname','udate'));
$grid->fieldcat()->switchToObjectMode();
$grid->fieldcat()->field('udate')->displayTime();
$grid->onClick(Generator::location(Generator::url('customers','update',null,array('customerid' => Generator::useAttribute('customerid')))));
return $grid;